package cn.itsource.hrm.client;


import cn.itsource.hrm.doc.CourseDoc;
import cn.itsource.hrm.query.CourseDocQuery;
import cn.itsource.hrm.util.AjaxResult;
import cn.itsource.hrm.util.PageList;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/courseDoc")
@FeignClient(value = "HRM-SEARCH",fallbackFactory = CourseDocClientFallbackFactory.class)
public interface CourseDocClient {
    //添加
    @PutMapping
    AjaxResult addOrUpdateCourseDoc(@RequestBody CourseDoc courseDoc);

    //删除
    @DeleteMapping("/{id}")
    AjaxResult deleteCourseDoc(@PathVariable("id") Long id);

    @PostMapping("/queryCourses")
    PageList<CourseDoc> queryPage(@RequestBody CourseDocQuery query);
}
